package com.clwl.supervise.superviseapp.entity.supervise;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
    * 监管模板管理
    */
@Data
@TableName(value = "JG_TEMPLATE")
public class JgTemplate implements Serializable {


    @TableId(value = "ID", type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 监管类别：1日常、2证后审查、3动态评分
     */
    @TableField(value = "SUP_CATEGORY")
    private String supCategory;

    /**
     * 监管环节code
     */
    @TableField(value = "SUP_PROCESS")
    private String supProcess;

    /**
     * 销售业态id
     */
    @TableField(value = "SPXS_ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long spxsId;

    /**
     * 餐饮业态id
     */
    @TableField(value = "CYFW_ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long cyfwId;

    /**
     * 生产食品类别id
     */
    @TableField(value = "SPSC_LB_ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long spscLbId;

    /**
     * 生产食品子类id
     */
    @TableField(value = "SPSC_LB_ZL_ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long spscLbZlId;

    /**
     * 特殊食品类别id
     */
    @TableField(value = "TSSP_LB_ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long tsspLbId;

    /**
     * 特殊食品子类id
     */
    @TableField(value = "TSSP_LB_ZL_ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long tsspLbZlId;

    /**
     * 模板名称
     */
    @TableField(value = "NAME")
    private String name;

    /**
     * 备注
     */
    @TableField(value = "REMARK")
    private String remark;

    /**
     * 创建时间
     */
    @TableField(value = "CREATE_TIME")
    private Date createTime;

    /**
     * 创建人id
     */
    @TableField(value = "CREATOR_ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long creatorId;

    /**
     * 修改时间
     */
    @TableField(value = "UPDATE_TIME")
    private Date updateTime;

    /**
     * 修改人id
     */
    @TableField(value = "UPDATOR_ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long updatorId;

    /**
     * 删除时间
     */
    @TableField(value = "DEL_TIME")
    private Date delTime;

    /**
     * 删除操作人id
     */
    @TableField(value = "DEL_OPTR")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long delOptr;

    /**
     * 是否删除：0-否，1-是
     */
    @TableField(value = "DELETE_FLAG")
    private Long deleteFlag;

    /**
     * 创建人姓名
     */
    @TableField(value = "CREATOR")
    private String creator;

    /**
     * 修改人姓名
     */
    @TableField(value = "UPDATED_BY")
    private String updatedBy;

    /**
     * 删除人姓名
     */
    @TableField(value = "DELETED_BY")
    private String deletedBy;

    private static final long serialVersionUID = 1L;
}
